#include <iostream>
#include "test.hpp"
#include "generic_arr.hpp"

using namespace std;

int main() {
{
	generic_arr<int> arr(5);
	arr[0] = 10;
	arr[1] = 20;
	arr[2] = 30;
	arr[3] = 40;
	arr[4] = 50;

	for(int i=0; i<arr.get_size(); i++) {
		cout << arr[i] << " ";
	}
	cout << endl;
}
{
	generic_arr<string> arr2(3);
	arr2[0] = "Hello";
	arr2[1] = "World";
	arr2[2] = "!";

	for(int i=0; i<arr2.get_size(); i++) {
		cout << arr2[i] << " ";
	}
	cout << endl;
}
{
	test t1(10);
	test t2(20);
	test t3(30);

	generic_arr<test> arr3(3);
	arr3[0] = t1;
	arr3[1] = t2;
	arr3[2] = t3;

	for(int i=0; i<arr3.get_size(); i++) {
		std::cout << arr3[i].getint() << " ";
	}
	std::cout << std::endl;

}


	return 0;
}